import request from '@/utils/request'

// 查询药品从药库调到药房列表
export function listDrug_transfer(query) {
  return request({
    url: '/drug_transfer/drug_transfer/list',
    method: 'get',
    params: query
  })
}

// 查询药品从药库调到药房详细
export function getDrug_transfer(transferId) {
  return request({
    url: '/drug_transfer/drug_transfer/' + transferId,
    method: 'get'
  })
}

// 新增药品从药库调到药房
export function addDrug_transfer(data) {
  return request({
    url: '/drug_transfer/drug_transfer',
    method: 'post',
    data: data
  })
}

// 修改药品从药库调到药房
export function updateDrug_transfer(data) {
  return request({
    url: '/drug_transfer/drug_transfer',
    method: 'put',
    data: data
  })
}

// 删除药品从药库调到药房
export function delDrug_transfer(transferId) {
  return request({
    url: '/drug_transfer/drug_transfer/' + transferId,
    method: 'delete'
  })
}
